<div id="left_side">
	<div id="home">
		<!--Hilight-->
		<?php if(!empty($dataHomeHilight)):?>
		<div id="home_hilight">
			<div class="cycleElementsContainer" id="slider">
				<div class="slider">
				<ul>
					<?php foreach($dataHomeHilight as $key => $value):?>
					<li>
						<?php echo $value;?>
					</li>				
					<?php endforeach;?>
				</ul>
				</div>
			</div>
			<div class="navigation">
				<?php foreach($dataHomeHilight as $key => $value):?>
					<a href="#" class="cycleToPoint1 cycleToPoint red <?php echo ($key==0 ? 'active':'');?>" data-position="<?php echo intval($key+1);?>"></a> 
				<?php endforeach;?>
			</div>			
		</div>
		<?php endif;?>
		<!--Music-->
		<div id="home_music">
			<h2 class="tab tabBlue">เพลงใหม่</h2>
			<a href="<?php echo $music_url;?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<div class="boderStyle1">
				<div class="musicType">ฟังเพลงไทย</div>
				<div class="fixHeight215 defaultBg">
					<div class="cycleElementsContainer" id="slider2">
						<div class="slider">
						<ul>
							<?php foreach($dataSongThai as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'album',
											'dimension' => '140x140',
											'file_name' => @$value->image->album_file_name.'.'.@$value->image->album_file_ext,
											'alt' => ''.$value->song_name.'',	
											'title' => ''.$value->song_name.''	
											)
										);?>								
									</div>
								</a>
								<!--Playlist-->
								<a href="<?php echo $playlist_url.'music/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank" class="_playlist" title="add to playlist"></a>								
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<h3><?php echo $value->song_name;?></h3>
								</a>
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ฟังเพลง <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint2 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint2 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint2 cycleToPoint green" data-position="9"></a>
							<a href="#" class="cycleToPoint2 cycleToPoint green" data-position="13"></a>
							<a href="<?php echo $music_url.'new_released/thai';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>
				<div class="musicType">ฟังเพลงสากล</div>
				<div class="fixHeight215 defaultBg">
					<div class="cycleElementsContainer" id="slider3">
						<div class="slider">
						<ul>
							<?php foreach($dataSongInter as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'album',
											'dimension' => '140x140',
											'file_name' => @$value->image->album_file_name.'.'.@$value->image->album_file_ext,
											'alt' => ''.$value->song_name.'',	
											'title' => ''.$value->song_name.''	
											)
										);?>								
									</div>
								</a>
								<!--Playlist-->
								<a href="<?php echo $playlist_url.'music/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank" class="_playlist" title="add to playlist"></a>								
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<h3><?php echo $value->song_name;?></h3>
								</a>								
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ฟังเพลง <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint3 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint3 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint3 cycleToPoint green" data-position="9"></a>
							<a href="#" class="cycleToPoint3 cycleToPoint green" data-position="13"></a>
							<a href="<?php echo $music_url.'new_released/inter';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>			
				<div class="musicType">ฟังเพลงเอเชียน</div>
				<div class="fixHeight215 defaultBg">
					<div class="cycleElementsContainer" id="slider4">
						<div class="slider">
						<ul>
							<?php foreach($dataSongAsian as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'album',
											'dimension' => '140x140',
											'file_name' => @$value->image->album_file_name.'.'.@$value->image->album_file_ext,
											'alt' => ''.$value->song_name.'',	
											'title' => ''.$value->song_name.''	
											)
										);?>						
									</div>
								</a>
								<!--Playlist-->
								<a href="<?php echo $playlist_url.'music/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank" class="_playlist" title="add to playlist"></a>							
								<a class="_player" href="<?php echo $music_url.'play/'.$value->song_id.'-'.seo_url($value->song_name);?>" target="_blank">
									<h3><?php echo $value->song_name;?></h3>
								</a>								
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ฟังเพลง <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint4 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint4 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint4 cycleToPoint green" data-position="9"></a>
							<a href="#" class="cycleToPoint4 cycleToPoint green" data-position="13"></a>
							<a href="<?php echo $music_url.'new_released/asian';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>
			</div>
		</div>
		<!--อัลบั้มรีวิว-->
		<?php if(!empty($dataAlbumReview)):?>
		<div id="home_album_review">
			<h2>อัลบั้มรีวิว</h2>
			<a href="<?php echo $news_url.'review';?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<div class="cycleElementsContainer" id="slider5">
				<div class="slider">
					<ul>
						<?php foreach($dataAlbumReview as $key => $value):?>
						<li>
							<div class="image">
								<?php echo exec_image(array(
									'folder' => 'news',
									'dimension' => '140x140',
									'file_name' => @$value->image->news_file_name.'.'.@$value->image->news_file_ext,
									'alt' => ''.@$value->news_subject.'',	
									'title' => ''.@$value->news_subject.''	
										)
								);?>
							</div>
							<a target="_blank" href="<?php echo $news_url.'archives/'.$value->news_id.'-'.seo_url($value->news_subject);?>">
								<div class="frame"></div>
							</a>
							<a class="slideUp" href="<?php echo $news_url.'archives/'.$value->news_id.'-'.seo_url($value->news_subject);?>" target="_blank">
								<?php echo $value->news_subject;?>
							</a>
						</li>				
						<?php endforeach;?>
					</ul>
				</div>
			</div>
			<div class="navigation">
				<a href="#" class="cycleToPoint5 cycleToPoint red active" data-position="1"></a> 
				<a href="#" class="cycleToPoint5 cycleToPoint red" data-position="5"></a> 
				<a href="#" class="cycleToPoint5 cycleToPoint red" data-position="9"></a> 
				<a href="#" class="cycleToPoint5 cycleToPoint red" data-position="13"></a> 
				<a href="#" class="cycleToPoint5 cycleToPoint red" data-position="17"></a>
			</div>			
		</div>
		<?php endif;?>
		<div id="home_video">
			<h2 class="tab tabBlue">วีดีโอ</h2>
			<a href="<?php echo $video_url;?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<div class="boderStyle2">
				<div class="VideoType">มิวสิควีดีโอ MV</div>
				<div class="fixHeight155 defaultBg">
					<div class="cycleElementsContainer" id="slider6">
						<div class="slider">
						<ul>
							<?php foreach($dataVideoMV as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'video',
											'dimension' => '140x90',
											'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
											'alt' => ''.$value->video_name.'',	
											'title' => ''.$value->video_name.''	
											)
										);?>								
									</div>
									<h3><?php echo $value->video_name;?></h3>
								</a>
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ดู <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint6 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint6 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint6 cycleToPoint green" data-position="9"></a>
							<a href="<?php echo $video_url.'mv/new_released';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>			
				<div class="VideoType">คลิปสัมภาษณ์</div>
				<div class="fixHeight155 defaultBg">
					<div class="cycleElementsContainer" id="slider7">
						<div class="slider">
						<ul>
							<?php foreach($dataVideoInterview as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'video',
											'dimension' => '140x90',
											'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
											'alt' => ''.$value->video_name.'',	
											'title' => ''.$value->video_name.''	
											)
										);?>								
									</div>
									<h3><?php echo $value->video_name;?></h3>
								</a>
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ดู <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint7 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint7 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint7 cycleToPoint green" data-position="9"></a>
							<a href="<?php echo $video_url.'interview/new_released';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>			
				<div class="VideoType">คลิปคอนเสิร์ต</div>
				<div class="fixHeight155 defaultBg">
					<div class="cycleElementsContainer" id="slider8">
						<div class="slider">
						<ul>
							<?php foreach($dataVideoConcert as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'video',
											'dimension' => '140x90',
											'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
											'alt' => ''.$value->video_name.'',	
											'title' => ''.$value->video_name.''	
											)
										);?>								
									</div>
									<h3><?php echo $value->video_name;?></h3>
								</a>
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ดู <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint8 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint8 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint8 cycleToPoint green" data-position="9"></a>
							<a href="<?php echo $video_url.'concert/new_released';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>			
				<div class="VideoType">คลิปข่าวบันเทิง</div>
				<div class="fixHeight155 defaultBg">
					<div class="cycleElementsContainer" id="slider9">
						<div class="slider">
						<ul>
							<?php foreach($dataVideoNews as $key => $value):?>
							<li>
								<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
									<div class="image">
										<?php echo exec_image(array(
											'folder' => 'video',
											'dimension' => '140x90',
											'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
											'alt' => ''.$value->video_name.'',	
											'title' => ''.$value->video_name.''	
											)
										);?>								
									</div>
									<h3><?php echo $value->video_name;?></h3>
								</a>
								<span>
								<?php foreach($value->artist as $key2 => $artist):?>
									<?php echo ($key2 > 0 ? '/':'');?>
									<a href="<?php echo $artist_url.'summary/'.$artist->artist_id.'-'.seo_url($artist->artist_name);?>" target="_blank"><?php echo $artist->artist_name;?></a>
								<?php endforeach;?>
								</span>
								<div class="views">ดู <?php echo number_format($value->views);?> ครั้ง</div>
							</li>				
							<?php endforeach;?>
						</ul>
						</div>
						<div class="navigation">
							<a href="#" class="cycleToPoint9 cycleToPoint green active" data-position="1"></a>
							<a href="#" class="cycleToPoint9 cycleToPoint green" data-position="5"></a>
							<a href="#" class="cycleToPoint9 cycleToPoint green" data-position="9"></a>
							<a href="<?php echo $video_url.'behind_scence/new_released';?>" target="_blank" class="readMore">all</a>
						</div>
					</div>				
				</div>
			</div>			
		</div>
		<div id="home_retroact_video">
			<h2>ดู You2Play TV ย้อนหลัง</h2>
			<a href="<?php echo $video_url.'you2playtv';?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<a href="<?php echo base_url().'live';?>" target="_blank" class="btnLiveTv"></a>
			<ul>
				<li class="first">
					<!--Vdo Player-->
					<div id="vdoPlayer">
						<?php if($this->agent->is_mobile()):?>
							<video id='my_video' controls muted preload='none'></video>
						<?php endif;?>
					</div>
					<script type="text/javascript" language="javascript">
					(function($) {
					/*whatever jQuery stuff*/
						$(function(){					
							var is_mobile = '<?php echo $this->agent->is_mobile();?>';
							var url_html5 = "http://203.151.21.9:1935/live/You2PlayTV_3/playlist.m3u8";
							var url_flash = "rtmp://203.151.21.9/live";
							if(is_mobile){
								//Set Video Source
								$('#my_video').append("<source id='mp4' src='"+url_html5+"' type='video/mp4'>");
								$('#my_video').attr('src',""+url_html5+"");
								$('#my_video').attr('width',315);
								$('#my_video').attr('height',205);		
								// videoplaza sdk, 4 sec time-out, callback function
								loadScript("<?php echo js_asset_url('media/html5-sdk-1.0.12.15.1-ea.min.js');?>",4000,initVideoplaza);
								// *** START - videoplaza plugin config ***
								vpConfig = {
									vphost : 'http://th-pmdplus.videoplaza.tv',
									category : 'live',
									tags : ['standard'],
									flags: [],
									playbackPosition: [] // mid-roll cue points, if any.
								}
								// *** END - videoplaza plugin config ***
								//Auto Play && Loop
								$('#my_video').attr('autoplay','autoplay');	
							} else {
								jwplayer("vdoPlayer").setup({
									autostart: true,
									mute: true,
							      	flashplayer: "<?php echo js_asset_url('media/player.swf');?>",
							      	width: 315,
							      	height: 205,
									streamer: ""+url_flash+"",
									file: "You2PlayTV_3",
									provider: "rtmp",
/*								  "plugins": {
								    "ova-jw": {
									  "canFireEventAPICalls": true,
								      "ads": {
								        "skipAd": {
								          "enabled": "true"
								        },
								        "schedule": [
								          {
								            "position": "pre-roll",
								            "tag": ""+generatTag('<?php //echo json_encode($dataAds);?>')+""
								          },
										  {
										  	"position": "post-roll",
											"tag": "http://ads.you2play.com/openx/delivery/fc.php?script=bannerTypeHtml:vastInlineBannerTypeHtml:vastInlineHtml&source=&format=vast&charset=UTF_8&nz=1&zones=z1=166"
										  } 	  
								        ]
								      }
								    }
								  }	*/																
							      	plugins: "<?php echo js_asset_url('media/vp_plugin.swf');?>",
							      	vpdomain: "http://th-pmdplus.videoplaza.tv",
							      	vpshares: "live",
									vptimeout: 15000,
							      	vptags: "",
									stretching : "exactfit",
									closebuttontimeout: 5
								});	
								
								jwplayer().onFullscreen(function(event){
									if(event.fullscreen){
										jwplayer().setFullscreen(false);
										window.location.href = 'http://www.you2play.com/live';
										//window.open('http://www.you2play.com/live','_live');
									}
									//jwplayer().resize(315,205);
									//alert('the volume is now: ' + event.volume);
								});									
							}
						});	
					})(jQuery);					
					</script>									
				</li>
				<?php foreach($dataVideoTv as $key => $value):?>
					<?php
						switch($key):
/*							case 0:
								$class = 'class="first"';
								$dimension = '315x205';
							break;*/
							default:
								$class = 'class="second"';
								$dimension = '155x100';
						endswitch;
					?>				
					<li <?php echo $class;?>>
						<a class="_player" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank">
							<div class="image">
								<?php echo exec_image(array(
									'folder' => 'video',
									'dimension' => $dimension,
									'file_name' => @$value->video_thumb_name.'.'.@$value->video_thumb_ext,
									'alt' => ''.$value->video_name.'',	
									'title' => ''.$value->video_name.''	
									)
								);?>						
							</div>
						</a>
						<a class="_player info" href="<?php echo $video_url.'play/'.$value->video_id.'-'.seo_url($value->video_name);?>" target="_blank"><?php echo $value->video_name;?></a>
					</li>
				<?php endforeach;?>
			</ul>
		</div>
		<div id="home_news">
			<h2 class="tab tabGreen">ข่าวบันเทิงวันนี้</h2>
			<a href="<?php echo $news_url;?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<div class="boderStyle3">
				<ul>
					<?php foreach($dataNews as $key => $value):?>
						<?php
							switch($key):
								case 0:
									$class = 'class="first"';
									$dimension = '325x205';
								break;
								case 1:
								case 2:
								case 3:
								case 4:
									$class = 'class="second"';
									$dimension = '140x95';
								break;
								default:
									$class = 'class="third '.($key&1 ? 'left':'right').'"';
									$dimension = '85x50';
							endswitch;
						?>
						<li <?php echo $class;?>>
							<a href="<?php echo $news_url.'archives/'.$value->news_id.'-'.seo_url($value->news_subject);?>" target="_blank">
								<div class="image">
									<?php echo exec_image(array(
										'folder' => 'news',
										'dimension' => $dimension,
										'file_name' => @$value->image->news_file_name.'.'.@$value->image->news_file_ext,
										'alt' => ''.$value->news_subject.'',	
										'title' => ''.$value->news_subject.''	
										)
									);?>									
								</div>
							</a>
							<a href="<?php echo $news_url.'archives/'.$value->news_id.'-'.seo_url($value->news_subject);?>" target="_blank" class="info"><?php echo $value->news_subject;?></a>
						</li>
					<?php endforeach;?>
				</ul>
			</div>
		</div>
		<div id="home_movie">
			<div id="home_new_movie">
				<h2 class="tab tabPurple">หนังใหม่ชนโรง</h2>
				<a href="<?php echo $movie_url.'showing';?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
				<ul class="movieBg">
					<?php foreach($dataMovieShowing as $value):?>
					<li>
						<a class="_player" href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
							<div class="image">
								<?php echo exec_image(array(
									'folder' => 'movie',
									'dimension' => '140x210',
									'file_name' => @$value->image->movie_file_name.'.'.@$value->image->movie_file_ext,
									'alt' => ''.$value->movie_name.'',	
									'title' => ''.$value->movie_name.''	
									)
								);?>									
							</div>
							<h3><?php echo $value->movie_name;?></h3>
						</a>
					</li>
					<?php endforeach;?>															
				</ul>
			</div>
			<div id="home_coming_movie">
				<h2 class="tab tabPurple">โปรแกรมหน้า</h2>
				<a href="<?php echo $movie_url.'coming_soon';?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
				<ul class="movieBg">
					<?php foreach($dataMovieComing as $value):?>
					<li>
						<a class="_player" href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
							<div class="image">
								<?php echo exec_image(array(
									'folder' => 'movie',
									'dimension' => '140x210',
									'file_name' => @$value->image->movie_file_name.'.'.@$value->image->movie_file_ext,
									'alt' => ''.$value->movie_name.'',	
									'title' => ''.$value->movie_name.''	
									)
								);?>									
							</div>
							<h3><?php echo $value->movie_name;?></h3>
						</a>
					</li>
					<?php endforeach;?>															
				</ul>				
			</div>
			<div class="movieNewsBg">
				<div id="home_movie_clip">
					<h2 class="tab tabLightPurple">คลิปเกี่ยวกับหนัง</h2>
					<a href="<?php echo $movie_url.'clip';?>" target="_blank" class="readMore">ดูทั้งหมด&nbsp;&raquo;</a>
					<ul>
						<?php foreach($dataMovieClip as $value):?>
						<li>
							<a class="_player" href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank">
								<div class="image">
									<?php echo exec_image(array(
										'folder' => 'movie',
										'dimension' => '145x100',
										'file_name' => @$value->image->movie_file_name.'.'.@$value->image->movie_file_ext,
										'alt' => ''.$value->movie_name.'',	
										'title' => ''.$value->movie_name.''	
										)
									);?>						
								</div>
							</a>
							<a class="info _player" href="<?php echo $movie_url.'play/'.$value->movie_id.'-'.seo_url($value->movie_name);?>" target="_blank"><?php echo $value->movie_name;?></a>
						</li>
						<?php endforeach;?>
					</ul>
				</div>
				<div id="home_movie_news">
					<h2 class="tab tabLightPurple">ข่าววงการหนัง</h2>
					<a href="<?php echo $news_url.'movie';?>" target="_blank" class="readMore">ดูทั้งหมด&nbsp;&raquo;</a>
					<ul>
						<?php foreach($dataNewsMovie as $value):?>
						<li>
							<a class="_player" href="<?php echo $movie_url.'play/'.$value->news_id.'-'.seo_url($value->news_subject);?>" target="_blank">
								<div class="image">
									<?php echo exec_image(array(
										'folder' => 'news',
										'dimension' => '90x65',
										'file_name' => @$value->image->news_file_name.'.'.@$value->image->news_file_ext,
										'alt' => ''.$value->news_subject.'',	
										'title' => ''.$value->news_subject.''	
										)
									);?>						
								</div>
							</a>
							<a href="<?php echo $news_url.'archives/'.$value->news_id.'-'.seo_url($value->news_subject);?>" target="_blank" class="info"><?php echo $value->news_subject;?></a>
						</li>
						<?php endforeach;?>
					</ul>				
				</div>
			</div>
		</div>
		<div id="home_fashion">
			<h2 class="tab tabBlue">แฟชั่นฮอต</h2>
			<a href="<?php echo $fashion_url;?>" target="_blank" class="readmore">ดูทั้งหมด&nbsp;&raquo;</a>
			<ul class="fashion_bg">
				<?php foreach($dataFashion as $value):?>
				<li>
					<a href="<?php echo $fashion_url.'archives/'.$value->fashion_id.'-'.seo_url($value->fashion_name);?>" target="_blank">
						<div class="image">
							<?php echo exec_image(array(
								'folder' => 'fashion',
								'dimension' => '140x210',
								'file_name' => @$value->image->fashion_file_name.'.'.@$value->image->fashion_file_ext,
								'alt' => ''.$value->fashion_name.'',	
								'title' => ''.$value->fashion_name.''	
								)
							);?>									
						</div>
						<h3><?php echo $value->fashion_name;?></h3>
					</a>
				</li>
				<?php endforeach;?>															
			</ul>		
		</div>		
		<!--<iframe src="http://fashion.you2play.com/i_fashion" width="660" height="328" frameborder="0" scrolling="no"></iframe>-->
	</div>
</div>
<div id="right_side">
	<!--Module-->
	<?php
	if(!empty($module))
	foreach($module as $value):?>
	<?php echo $value;?>
	<?php endforeach;?>
</div>
<div class="clear">
</div>
<script type="text/javascript" language="javascript">
(function($) {
/*whatever jQuery stuff*/
	$(function(){
		//multipleElementsCycle
		$("#slider").multipleElementsCycle({
			scrollCount: 1,
			start: 0,
			jumpTo: '.cycleToPoint1',
			auto: true
		});
		//multipleElementsCycle
		$("#slider2").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint2'
		});
		//multipleElementsCycle
		$("#slider3").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint3'
		});
		//multipleElementsCycle
		$("#slider4").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint4'
		});	
		//multipleElementsCycle
		$("#slider5").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint5'
		});	
		//multipleElementsCycle
		$("#slider6").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint6'
		});
		//multipleElementsCycle
		$("#slider7").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint7'
		});	
		//multipleElementsCycle
		$("#slider8").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint8'
		});
		//multipleElementsCycle
		$("#slider9").multipleElementsCycle({
			scrollCount: 4,
			start: 0,
			jumpTo: '.cycleToPoint9'
		});												
	});	
})(jQuery);
</script>